<style type="text/css">
    .contac-form{
        width:70%;
        margin: auto;
    }
    
    .contac-form input[type="text"],
    .contac-form textarea{
        width:100%;
    }
    
    .contac-form textarea{
        height:250px;
    }
</style>
<?php 
$this->pageTitle=Yii::app()->name . ' - Liên hệ';
$this->breadcrumbs=array(
	'Liên hệ',
);
?>
<?php
$baseUrl = Yii::app()->request->baseUrl;
$cs = Yii::app()->getClientScript();
?>


<div class="main-title">LIÊN HỆ</div>

<div class="page-content">
    <?php echo $page->content ?>
</div>

<div class="head-content">    </div> 	
       <div class="items-list">                    
        <div class=" box-content" onload="initialize()" >
        <div class="span12">
            <?php if(Yii::app()->user->hasFlash('contact')): ?>
                <div class="flash-success">
                    <?php echo Yii::app()->user->getFlash('contact'); ?>
                </div>
            <?php endif; ?>

                <div class="form contac-form">
                    <div class="desc">
                        Nếu bạn có yêu cầu cụ thể, xin vui lòng điền thông tin vào form sau. Chúng tôi sẽ trả lời cho bạn trong thời gian sớm nhất.
                    </div>
                    
                <?php $form=$this->beginWidget('CActiveForm', array(
                        'id'=>'contact-form',
                        'enableAjaxValidation'=>false,
                        'htmlOptions'=>array(
                            'enctype'=>'multipart/form-data'
                        )
                )); ?>

                        <div class="row">
                                <?php echo $form->labelEx($model,'userName'); ?>
                                <?php echo $form->textField($model,'userName'); ?>
                                <?php echo $form->error($model,'userName'); ?>
                        </div>
                    
                        <div class="row">
                                <?php echo $form->labelEx($model,'companyName'); ?>
                                <?php echo $form->textField($model,'companyName'); ?>
                                <?php echo $form->error($model,'companyName'); ?>
                        </div>

                        

                        <div class="row">
                                <?php echo $form->labelEx($model,'regency'); ?>
                                <?php echo $form->textField($model,'regency'); ?>
                                <?php echo $form->error($model,'regency'); ?>
                        </div>

                        <div class="row">
                                <?php echo $form->labelEx($model,'email'); ?>
                                <?php echo $form->textField($model,'email'); ?>
                                <?php echo $form->error($model,'email'); ?>
                        </div>
                    
                        <div class="row">
                                <?php echo $form->labelEx($model,'phone'); ?>
                                <?php echo $form->textField($model,'phone',array('style'=>'width:150px')); ?>
                                <?php echo $form->error($model,'phone'); ?>
                        </div>
                    
                        <div class="row">
                                <?php echo $form->labelEx($model,'fax'); ?>
                                <?php echo $form->textField($model,'fax',array('style'=>'width:150px')); ?>
                                <?php echo $form->error($model,'fax'); ?>
                        </div>
                    
                        <div class="row">
                                <?php echo $form->labelEx($model,'address'); ?>
                                <?php echo $form->textField($model,'address'); ?>
                                <?php echo $form->error($model,'address'); ?>
                        </div>
                    
                        <div class="row">
                                <?php echo $form->labelEx($model,'website'); ?>
                                <?php echo $form->textField($model,'website'); ?>
                                <?php echo $form->error($model,'website'); ?>
                        </div>

                        <div class="row">
                                <?php echo $form->labelEx($model,'title'); ?>
                                <?php echo $form->textField($model,'title'); ?>
                                <?php echo $form->error($model,'title'); ?>
                        </div>

                        

                        <div class="row">
                                <?php echo $form->labelEx($model,'content'); ?>
                                <?php echo $form->textArea($model,'content'); ?>
                                <?php echo $form->error($model,'content'); ?>
                        </div>

                        <div class="row">
                                <?php echo $form->labelEx($model,'upload'); ?>
                                <?php echo $form->fileField($model,'upload'); ?>
                                <?php echo $form->error($model,'upload'); ?>
                        </div>

                        <div class="row buttons">
                                <?php echo CHtml::submitButton(Yii::t('main', 'Submit')); ?>
                        </div>

                <?php $this->endWidget(); ?>

                </div><!-- form -->

        </div>
        <!--
        <div class="span12 margless" >
        <iframe width="93%" height="350" style=" margin-left: 3%"
                    frameborder="0" scrolling="no"
                    marginheight="0" marginwidth="0"
                    src="https://maps.google.com/maps?q= 2 Thái Thị Bôi, Thanh khê, Đà Nẵng, Việt Nam&amp;output=embed">
            </iframe>
        </div>
        -->
        </div>
        
                               

    </div>

        
        
